export default function(data, check){
  const checks = document.querySelectorAll(".check")
  checks.forEach(val=>{
    val.checked = check
  })
  data.forEach(val=>{
    val.check = check
  })
  localStorage.setItem("cartData", JSON.stringify(data))
}